package com.fr.base.core.antlr;

class ActionElement extends AlternativeElement
{
  protected String actionText;
  protected boolean isSemPred = false;

  public ActionElement(Grammar paramGrammar, Token paramToken)
  {
    super(paramGrammar);
    this.actionText = paramToken.getText();
    this.line = paramToken.getLine();
    this.column = paramToken.getColumn();
  }

  public void generate()
  {
    this.grammar.generator.gen(this);
  }

  public Lookahead look(int paramInt)
  {
    return this.grammar.theLLkAnalyzer.look(paramInt, this);
  }

  public String toString()
  {
    return " " + this.actionText + ((this.isSemPred) ? "?" : "");
  }
}